<%-- 
    Document   : list
    Created on : 2015-04-17, 14:59:05
    Author     : zhoutianhuai
--%>
<%@page contentType="text/html; charset=UTF-8" session="false" %>
<%@include  file="/WEB-INF/jspf/import.jspf"%>
<form onsubmit="return navTabSearch(this);" id="pagerForm" name="searchForm" method="post">
    <input type="hidden" name="pageNum" value="${pager.pageNo}" />
    <input type="hidden" name="pageSize" value="${pager.pageSize}" />
    <input type="hidden" name="orderField" value="${orderField}" />
    <input type="hidden" name="orderDirection" value="${orderDirection}" />
</form>
<div class="panelBar">
    <ul class="toolBar">
        <li><a class="icon" href="${ROOT}/admin/upgradeGift/goToCreate.do"  target="navTab" rel="message-detail" title="新建礼品"><span>新建礼品</span></a></li>
    </ul>
</div>
<div class="pageContent">
    <table class="table" style="width: 100%" layoutH="76">
        <thead>
            <tr>
                <th >排序序号</th>
                <th >礼品名称</th>
                <th >所需价值点</th>
                <th >总数量</th>
                <th >剩余库存</th>
                <th >是否必选</th>
                <th >状态</th>
                <th >操作</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach var="e" items="${pager.resultList}">
                <tr>
                    <td data="${e.giftId}">${e.seq}</td>
                    <td>${fn:escapeXml(e.name)}</td>
                    <td>${e.valuePoint}</td>
                    <td>${e.total}</td>
                    <td>${e.curNum}</td>
                    <td>${e.isRequired==1?"必选":"非必选"}</td>
                    <td>${e.status==1?"上架":"下架"}</td>
                    <td>
                        <a class="btnEdit" href="${ROOT}/admin/upgradeGift/giftDetail.do?giftId=${e.giftId}"
                           target="navTab" rel="upgradegift-detail" title="修改礼品信息">修改礼品信息</a>
                        <a target="ajaxTodo" class="btnDel" href="${ROOT}/admin/upgradeGift/editStatus.do?status=-1&giftId=${e.giftId}"  title="删除礼品">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共 ${pager.total} 条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.pageNo}"></div>
</div>
